Skip to content

Conversation

mathomp4
Copy link
Member

@mathomp4 mathomp4 commented Jun 3, 2025

Per @michellefrazer:

I'm having a new related issue where movestat is interpreting seasons wrong again.

With names like GenCast-FP-1.0deg-e1_GenCast-FP-1.0deg-e1_stats_uwnd_corcmp_GLO_z_MAY.gif, the season is interpreted as P-1.
With names like GenCast_FP_1.0deg_e1_GenCast_FP_1.0deg_e1_stats_uwnd_corcmp_GLO_z_MAY.gif, the season is interpreted as P_1.

This PR was supposed to make the "season" everything after the last underscore, but it appears that somehow it is actually looking for a 3-character string before the first period.

I can of course avoid periods in my experiment names in future, but I'm wondering if the code should be changed to focus on the underscore instead of the period? Or look for the last period instead of the first one?

So I yelled at ChatGPT for a bit and this seems to do it.

@mathomp4 mathomp4 self-assigned this Jun 3, 2025
@mathomp4 mathomp4 added the 0 diff The changes in this pull request have verified to be zero-diff with the target branch. label Jun 3, 2025
@mathomp4 mathomp4 requested a review from michellefrazer June 3, 2025 23:17
Copy link

@michellefrazer michellefrazer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it on moving my current files (with periods in their names) and it worked great, thanks!

@mathomp4 mathomp4 marked this pull request as ready for review June 4, 2025 14:02
@mathomp4 mathomp4 requested review from a team as code owners June 4, 2025 14:02
@mathomp4
Copy link
Member Author

mathomp4 commented Jun 4, 2025

I tested it on moving my current files (with periods in their names) and it worked great, thanks!

Okay. I'll undraft now so @sdrabenh can evaluate and test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 diff The changes in this pull request have verified to be zero-diff with the target branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants